using System;
using System.ComponentModel;

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopTask : BaseObject
    {
        public TopTask(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here or place it only when the IsLoading property is false:
            // if (!IsLoading){
            //    It is now OK to place your initialization code here.
            // }
            // or as an alternative, move your initialization code into the AfterConstruction method.
        }

        private string appKey = "12344956";
        public string AppKey
        {
            get { return appKey; }
            set
            {
                SetPropertyValue("AppKey", ref appKey, value);
            }
        }

        private string appSecret = "3865429228e6ffd6fb132510ed91c2d7";
        public string AppSecret
        {
            get { return appSecret; }
            set
            {
                SetPropertyValue("AppSecret", ref appSecret, value);
            }
        }

        private string sessionKey = "";
        public string SessionKey
        {
            get { return sessionKey; }
            set
            {
                SetPropertyValue("SessionKey", ref sessionKey, value);
            }
        }

        private string serverUrl = "http://gw.api.taobao.com/router/rest";
        public string ServerUrl
        {
            get { return serverUrl; }
            set
            {
                SetPropertyValue("ServerUrl", ref serverUrl, value);
            }
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }
    }

}
